﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;

namespace SourFruit.level.obj
{
    public class Goal : LevelObject
    {
        /// <summary>  
        /// Handles the informing the receivers that the players position has changed.  
        /// </summary>  
        /// <param name="sender">The sender of the event.</param>  
        /// <param name="e">The EventArgs of the event.</param>  
        public delegate void GoalReached();
        public event GoalReached GoalReachedEvent;

        public Goal(int _posX, int _posY, int _width, int _height, Texture2D _texture) : base(_posX, _posY, _width, _height, _texture) { }

        public void CreateEventGoalReached()
        {
            if (GoalReachedEvent != null)
                GoalReachedEvent();
        }
    }
}
